{$header}
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">新增赠品 [ <a href="__APP__/Gift/edit/id/{$_REQUEST.id}">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<form class="form-horizontal well" method='post' id="form1" action="__URL__/insert/">
<table cellpadding=3 cellspacing=3 >
<tr>
	<td class="tRight" >商品标题：</td>
	<td class="tLeft" >
		<input type="hidden" name="gift_id" value="{$_REQUEST.id}">
		<input type="hidden" name="jumpUrl" value="__APP__/Gift/edit/id/{$_REQUEST.id}">
            <input type="text" name="name" value="" class="large">
        </td>
</tr>
<tr>
	<td class="tRight" >按<b>汉字</b>查询产品：</td>
	<td class="tLeft" >
            <input id="hanzi" name="goods_id" style="width:700px">
        </td>
</tr>
<tr>
	<td class="tRight" >数量：</td>
	<td class="tLeft" >
            <input type="text" name="number" value="" class="small">
        </td>
</tr>
<tr>
	<td class="tRight" >价格</td>
	<td class="tLeft" >
            <input type="text" name="price" value="" class="small">
        </td>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<a class="btn btn-primary offset1" href="__URL__"><i class="icon-arrow-left icon-white"></i>返回</a>
	</td>
</tr>
</table>
</form>
</div>
</div>
<include file="Public:footer"/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Js/easyui/themes/default/easyui.css">
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/filter-product.js"></script>
<script type="text/javascript">
    function showdetail(input_type,trans_type){
        var product_id = $('input[name="'+input_type+'_id"]').attr('value');
        if(product_id > 0){
        jQuery.post(
        URL+'/getProductDetail',
        {   product_id:product_id,
            trans_type:trans_type
        },
        function(data){
            data = data.data;
            if(data.customer_id){
                $('select[name="customer_id"]').empty();
                $('select[name="customer_id"]').append(data.customer);
            }

            $('#chosed_product').append(data.product_detail);
        },
        'json'
        );
        }
};
</script>
